package com.smile.handler;

//@RestControllerAdvice
//@Slf4j
 class GlobalExceptionHandler {
//    @Autowired
//    HttpServletResponse httpServletResponse;
//    @ExceptionHandler(RuntimeException.class)
//    public Result handler(RuntimeException e){
//        System.out.println(e.getMessage());
//            String message=e.getMessage();
//        System.out.println(httpServletResponse.getStatus());
//        httpServletResponse.setStatus(500);
////        if(e instanceof BadCredentialsException) message = "账号或密码错误!";
//        log.error( message+ "globalException");
//        return Result.fail(message);
//    }
}
